mod borrow_demo;
mod cpp_cmp_demo;
mod enum_demo;
mod mut_demo;
mod once_demo;
mod trait_demo;

#[allow(unused)]
fn main() {
    cpp_cmp_demo::cpp_cmp_demo();
    test();
}

fn test() {
    struct Foo {
        a: i32,
        b: i32,
        c: i32,
    }

    let mut x = Foo { a: 0, b: 0, c: 0 };
    let a = &mut x.a;
    let b = &mut x.b;
    let c = &x.c;
    *b += 1;
    let c2 = &x.c;
    *a += 10;
    println!("{} {} {} {}", a, b, c, c2);
}
